/*
 * WidgetContainer.h
 *
 *  Created on: Jun 18, 2012
 *      Author: gonzalo
 */

#ifndef WIDGETCONTAINER_H_
#define WIDGETCONTAINER_H_

#include "../Widget.h"

class WidgetContainer : public Widget{

protected:

	std::list<Widget*> widgets;

public:
	WidgetContainer(int posX, int posY,SDL_Surface* surface, Widget *parent);
	virtual ~WidgetContainer();


	virtual void handleEvent(Event event);

	virtual void resolve();

	virtual void showOn(SDL_Surface* surface);

	void add(Widget* widget);

};

#endif /* WIDGETCONTAINER_H_ */
